package com.z.sys.service;

import com.z.base.Results;
import com.z.sys.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.z.sys.vo.UserDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author zxy
 * @since 2020-10-13
 */
public interface IUserService extends IService<User> {

    void save(User user, Integer roleId);

    Results<User> findByPage(Integer page, Integer limit);

    List<User> findUserByPhone(String phone);

    User findById(String id);

    void deleteById(String id);

    void update(UserDto user, Integer roleId);

    Results<User> findPageByMap(Map<String, Object> map, Integer offset, Integer limit);

    User findUserByName(String name);
}
